import Request from "@/Request";

export interface Student {
    id: number;
    name: string;
    sex: string;
    studentNumber: string;  //学号
    college: string;  //学院
    introduction: string;  //自我介绍
    reason: string; //原因
    selection: string;  //意向部门
    email: string;
    phone: string;
}

class ManagerStudent extends Request {
    // 通过部门id查询报名部门的人
    public getApplicants(id: number) {
        return this.post('/User/selectApplyUser', { id: id })
    }

    // 发送邮箱
    public noticeByemail(list: number[], information: string) {
        return this.post('/User/noticeByEmail', { num: list, information: information })
    }

    //导出表格
    public exportExcel(list: number[]) {
        return this.post('/User/exportExcel', { num: list })
    }

    // 进入下一轮面试
    public enterNextInterview(id:number){
        return this.post('/Association/updateInterviewNow',{id:id})
    }
}

export const managerStudent = new ManagerStudent()